package com.lqzs.businessmanager.bean

import android.view.accessibility.AccessibilityNodeInfo
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "ele_table")
class EleInfo() {
    @PrimaryKey(autoGenerate = true)
    var uid =0 //主键自增长ID
    @ColumnInfo(name = "ele_headImg")
    var headImg:String?=null //用户头像
    @ColumnInfo(name = "ele_userName")
    var userName:String?="" //用户名称
    @ColumnInfo(name = "ele_fraction")
    var fraction:String?="" //分数满意度 包含味道和包装
    @ColumnInfo(name = "ele_chaseComments")
    var chaseComments:String?="" //用户评价 有则上传 没有则不上传
    @ColumnInfo(name = "ele_orderDetails")
    var orderDetails:String?="" //订单详情
    @ColumnInfo(name = "ele_orderRecommend")
    var orderRecommend:String?="" //顾客推荐
    @ColumnInfo(name = "ele_chaseComments_time")
    var chaseCommentsTime:String?="" //用户评价时间 有则上传 没有则不上传
    @ColumnInfo(name = "ele_merchantReplied")
    var merchantReplied:String?="" //商家回复
    @ColumnInfo(name = "ele_merchantReplied_time")
    var merchantRepliedTime:String?="" //商家回复时间
    @ColumnInfo(name = "ele_reviewId")
    var reviewId:String?=null //评论ID
    @ColumnInfo(name = "ele_upload")
    var upload = 0//是否上传后台0未上传，1上传,3需要更新

    override fun toString(): String {
        return "EleInfo(userName=$userName," +
                "fraction='$fraction', " +
                "chaseComments='$chaseComments'," +
                "orderDetails='$orderDetails',  " +
                "orderRecommend='$orderRecommend',  " +
                "chaseCommentsTime='$chaseCommentsTime'," +
                "merchantReplied='$merchantReplied'," +
                "merchantRepliedTime='$merchantRepliedTime')"
    }


}
